package com.gulimall.api.feign;

import com.gulimall.common.core.domain.Result;
import com.gulimall.common.dto.cart.CartItemDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gulimall-product")
public interface ProductClient {
    /**
     * 获取商品sku信息
     */
    @GetMapping("/product/sku-info/getSkuInfo/{skuId}")
    Result<CartItemDTO> getSkuInfo(@PathVariable("skuId") Long skuId);
}
